package com.tedu.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.tedu.service.UserService;
import com.tedu.util.UserResult;


@Controller
public class FindAllController {
	@Resource
	private UserService service;	
	@RequestMapping("findAll.do")
	@ResponseBody
	public UserResult excute(Integer page){
		UserResult result= service.findAllUser(page);
		return result;
	}
}
